package com.totem.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.totem.base.mybatis.model.AbstractEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = true)
@Data
@Builder
@TableName("t_orders")
public class TOrders extends AbstractEntity {
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.ASSIGN_ID)
    private Long id;
    @TableField("customer_id")
    private Long customerId;
    @TableField("order_type")
    private String orderType;
    @TableField("amount")
    private BigDecimal amount;
    @TableField("order_time")
    private Date orderTime;
    @TableField("payment_time")
    private Date paymentTime;
    @TableField("cancel_time")
    private Date cancelTime;
    @TableField("payment_state")
    private String paymentState;
    @TableField("state")
    private String state;
}
